package com.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @description:
 * @author：nihongyu
 * @date: 2023/7/18
 */
@ConfigurationProperties(prefix = "redis.caffeine")
public class RedisCaffeineProperties {

    //是否允许 null 值保存
    private Boolean allowNull = true;

    /**
     * 缓存key的前缀
     */
    private String cachePrefix;

    private String topic;

    private List<CaffeineEntity> caffeineList;


    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Boolean getAllowNull() {
        return allowNull;
    }

    public void setAllowNull(Boolean allowNull) {
        this.allowNull = allowNull;
    }

    public String getCachePrefix() {
        return cachePrefix;
    }

    public void setCachePrefix(String cachePrefix) {
        this.cachePrefix = cachePrefix;
    }

    public List<CaffeineEntity> getCaffeineList() {
        return caffeineList;
    }

    public void setCaffeineList(List<CaffeineEntity> caffeineList) {
        this.caffeineList = caffeineList;
    }
}
